<template>
    <div class="studentifo">
        <h3 v-text="msg"></h3>
        <p>学生姓名：{{name}}</p>
        <p>年龄：{{age}}</p>
        <button @click="check">查看学生姓名</button>
        <h3>Author:{{author}}</h3>
    </div>
</template>

<script>
// import {x} from "../minxin"
export default {
    name:"StudentNa",
    data(){
        return {
            msg:"学生个人信息",
            name:'xiaoming',
            age:21
        }
    },
    props:['look_name','author'],
    // mixins:[x]
    methods:{
        check(){
            this.look_name(this.name)
        }
    }
}
</script>

<style>
    .studentifo{
        background-color: black;
    }
</style>